import sys
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QApplication
from ui_form.view.table_interface import TableInterface
from ui_form.view.main_window import Window
from qfluentwidgets import setTheme, Theme

def main1():
    app = QApplication(sys.argv)
    w = TableInterface()
    w.show()
    sys.exit(app.exec_())
    
def main2():
    app = QApplication(sys.argv)
    w = TableInterface()
    w.show()
    sys.exit(app.exec_())
    
def main3():
    QApplication.setHighDpiScaleFactorRoundingPolicy(Qt.HighDpiScaleFactorRoundingPolicy.PassThrough)
    QApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
    QApplication.setAttribute(Qt.AA_UseHighDpiPixmaps)
    # setTheme(Theme.DARK)
    app = QApplication(sys.argv)
    w = Window()
    w.show()
    app.exec_()

# import ui_form.img.images_rc
if __name__ == "__main__":
    main3()